Platform Explorer / Nuxeo Platform LTS 2017 9.10

Contribution org.nuxeo.drive.versioning--filters

This contribution is part of XML component org.nuxeo.drive.versioning inside nuxeo-drive-core-9.10.jar /OSGI-INF/nuxeodrive-versioning-policy-contrib.xml

Extension Point

Extension point filters of component VersioningService.

Contributed Items

  • <filter id="versioning-delay">
          <condition>#{currentDocument.dc.modified.time - previousDocument.dc.modified.time &gt;= 3600000}</condition>
        </filter>
  • <filter id="drive-filter">
          <condition>#{currentDocument.contextData.source == "drive"}</condition>
        </filter>
  • <filter id="not-drive-filter">
          <condition>#{currentDocument.contextData.source != "drive"}</condition>
        </filter>
  • <filter id="not-folderish">
          <condition>#{!currentDocument.folder}</condition>
        </filter>

XML Source

<extension point="filters" target="org.nuxeo.ecm.core.versioning.VersioningService">
    <filter id="versioning-delay">
      <condition>#{currentDocument.dc.modified.time - previousDocument.dc.modified.time &gt;= 3600000}</condition>
    </filter>
    <filter id="drive-filter">
      <condition>#{currentDocument.contextData.source == "drive"}</condition>
    </filter>
    <filter id="not-drive-filter">
      <condition>#{currentDocument.contextData.source != "drive"}</condition>
    </filter>
    <filter id="not-folderish">
      <condition>#{!currentDocument.folder}</condition>
    </filter>
  </extension>